package com.sanben.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sanben.project.data.dto.ProjectReleaseDto;
import com.sanben.project.data.req.ProjectReleaseReq;
import com.sanben.project.data.vo.ProjectReleaseVo;
import com.sanben.project.entity.ProjectRelease;

import java.util.List;

/**
 * @author cyh
 * @description: 项目发布表 服务类
 * @date: 2020-08-11
 */
public interface IProjectReleaseService extends IService<ProjectRelease> {

    /**
     * 列表分页
     *
     * @param req
     * @return
     */
    IPage<ProjectReleaseVo> page(ProjectReleaseReq req);

    /**
     * 最新项目
     *
     * @return
     */
    List<ProjectReleaseVo> getHomeList();

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Boolean save(ProjectReleaseDto dto);

    /**
     * 修改
     *
     * @param dto
     * @return
     */
    Boolean updateById(ProjectReleaseDto dto);

    /**
     * 删除
     *
     * @param toIntList
     * @return
     */
    Boolean deleteLogic(List<Integer> toIntList);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    ProjectRelease detail(Integer id);
}
